package com.glink.manage.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
* @author  qiushaoshan
* @since 2025-01-08
*/
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "ConstructionWorkBean对象", description = "施工工程-参建单位关系表")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "construction_work_unit_rela", resultMap = "BaseResultMap")
public class ConstructionWorkUnitRelaBean extends Model<ConstructionWorkUnitRelaBean> {

    private static final long serialVersionUID = -8085866364182830314L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "obj_id")
    private String objId;

    @ApiModelProperty(value = "施工工程ID")
    private String constructionWorkObjId;

    @ApiModelProperty(value = "参建单位ID")
    private String participatingUnitObjId;

    @ApiModelProperty(value = "参建类型,1为施工,2为监理")
    private String constructionType;

    @ApiModelProperty(value = "责任人ID")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String responsiblePersonId;

    @ApiModelProperty(value = "电话")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String phone;

    @ApiModelProperty(value = "参建单位角色,code：ParticipatingUnitRole")
    private String participatingUnitRole;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "创建人")
    @TableField(fill = FieldFill.INSERT)
    private String createUser;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "更新人")
    @TableField(fill = FieldFill.UPDATE)
    private String updateUser;
    
}
